:root {
	--totalWid: 100%;
	--themeColor: #00bdff;
}

html,
body {
	width: var(--totalWid);
}
/* 头部 */
header {
	/* top: 0;
	left: 0; */
	z-index: 40;
	padding: 0 20px;
	width: 100%;
	height: 66px;
	/* background-color: var(--themeColor); */
	border-bottom: 1px solid #aec7ec;
}
/* logo */
header a {
	display: block;
	width: 140px;
	height: 66px;
}
header a h1 {
	height: 66px;
	background: url(../imgs/new-logo-white2.png) no-repeat;
}
/* 导航列表 */
header ul {
	height: 66px;
}
header ul li {
	height: 64px;
	line-height: 64px;
	margin: 10px;
	cursor: pointer;
}
header ul .active {
	border-bottom: 3px solid var(--themeColor);
	color: var(--themeColor);
}
/* 按钮 */
header div span {
	border-radius: 15px;
	cursor: pointer;
}
header div span:first-child {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid #c9dcff;
}
header div span:last-child {
	display: inline-block;
	padding: 6px 14px;
	background-color: #ed510a;
	border: 1px solid #ed510a;
	margin-left: 5px;
}

/* 主体部分 */
main {
	width: 100%;
}

/* API分类 */
#apiCate {
	padding-top: 50px;
	width: 100%;
	height: 280px;
}
#apiCate li.active {
	color: var(--themeColor);
	border: 1px solid var(--themeColor);
}

#apiCate div h2 {
	line-height: 60px;
	font-size: 22px;
}

#apiCateList {
	display: flex;
	flex-wrap: wrap;
}

#apiCateList li {
	margin-right: 10px;
	margin-bottom: 10px;
	padding: 8px 16px;
	color: #666;
	border: 1px solid #ececec;
	border-radius: 10px;
	cursor: pointer;
}

#apiCate div div {
	margin-top: 60px;
}

/* 卡片区 */
#apiCards {
	width: 100%;
	margin-top: 24px;
}

#apiCardsList {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
}
#apiCardsList li {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-right: 10px;
	margin-bottom: 10px;
	width: 224px;
	height: 270px;
	border: 1px solid #ececec;
	overflow: hidden;
}

#apiCardsList li p:nth-child(2) {
	line-height: 44px;
	font-size: 12px;
}

#apiCardsList li p:nth-child(3) {
	line-height: 24px;
	font-size: 14px;
}
#apiCardsList li > span {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 70px;
	height: 24px;
	background-color: #e5f8ff;
	color: var(--themeColor);
	text-align: center;
	line-height: 22px;
	font-size: 14px;
}

/* 鼠标移出隐藏 */
#apiCardsList a {
	width: 192px;
	height: 32px;
	background-color: var(--themeColor);
	bottom: -45px;
	transition: all 1s;
	color: white;
	text-align: center;
	line-height: 32px;
}
#apiCardsList li:hover {
	box-shadow: 6px 6px 18px #adadad;
}
#apiCardsList li:hover a {
	bottom: 20px;
}
/* 页码 */
#pageination {
	width: 100%;
	height: 200px;
}
#pageination ul {
	display: flex;
	justify-content: space-evenly;
	align-items: center;
	/* justify-items: center; */
	margin: 0 auto;
	width: 300px;
	padding: 100px;
}
#pageination ul li {
	width: 20px;
	height: 20px;
	line-height: 20px;
	text-align: center;
	border-radius: 50%;
	font-size: 16px;
}
#pageination ul li.active {
	color: white;
	background-color: var(--themeColor);
}
#pageination ul li:hover {
	cursor: pointer;
}

/* 蒙层 */
#mask {
	position: fixed;
	top: 0;
	left: 0;
	display: none;
	width: 100%;
	height: 100%;
	z-index: 70;
	background-color: rgba(0, 0, 0, 30%);
}
/* 登录框 */
#loginModal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	box-sizing: border-box;
	padding: 36px 20px;
	width: 400px;
	height: 550px;
	background-color: white;
}
#loginModal form {
	display: none;
}
#loginModal form.on {
	display: block;
}
#loginModal input {
	border: none;
	outline: none;
}
/* logo */
#loginModalLogo {
	margin: 0 auto;
	margin-bottom: 26px;
	width: 135px;
	height: 50px;
	background: url(../imgs/new-logo-white2.png) no-repeat;
}
/* tab区 */
#loginModalTab {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	height: 40px;
}
#loginModalTab a {
	width: 160px;
	height: 40px;
	line-height: 40px;
	text-align: center;
	font-size: 16px;
	color: #555;
	/* text-align: right; */
}

#loginModalTab a.active {
	position: relative;
	color: var(--themeColor);
}
#loginModalTab a.active::after {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translate(-50%);
	display: block;
	content: "";
	width: 30%;
	height: 2px;
	background-color: var(--themeColor);
}
#loginModalTab i {
	width: 1px;
	height: 22px;
	background-color: #eee;
}
/* 用户名 */
#loginUser {
	margin: 15px 0;
	line-height: 40px;
	border-bottom: 1px solid #e7e7e7;
}
#loginUser i {
	position: relative;
	top: 4px;
	display: inline-block;
	width: 20px;
	height: 30px;
	background-image: url(../imgs/loginIcon.png);
	background-position: 24px 4px;
}
/* 密码 */
#loginPwd {
	margin: 15px 0;
	line-height: 40px;
	border-bottom: 1px solid #e7e7e7;
}
#loginPwd i {
	position: relative;
	top: 4px;
	display: inline-block;
	width: 20px;
	height: 30px;
	background-image: url(../imgs/loginIcon.png);
	background-position: 55px 4px;
}
/* 忘记密码 */
#forgetPwd {
	line-height: 50px;
	text-align: right;
}
#forgetPwd a {
	color: var(--themeColor);
}
#loginModal form [type="submit"] {
	width: 100%;
	height: 45px;
	text-align: center;
	background-color: var(--themeColor);
	color: white;
	font-size: 16px;
}
/* 提交按钮 */
#loginModal form p:last-child {
	line-height: 50px;
	font-size: 14px;
	color: #909090;
}
#loginModal form p:last-child a {
	color: var(--themeColor);
}

#ScanCodeLogin {
	display: none;
}

/* 扫码登录 */
#ScanCodeLogin {
	width: 290px;
	height: 240px;
	background-color: #fcfcfc;
	border: 1px solid #eeeeee;
	box-sizing: border-box;
	text-align: center;
	margin: 40px 35px 18px;
}
#ScanCodeLogin div {
	height: 240px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-content: space-around;
	padding: 40px 10px;
	box-sizing: border-box;
	/* background-color: red; */
}
#ScanCodeLogin div p {
	width: 265px;
	font-size: 14px;
	line-height: 34px;
}
#ScanCodeLogin div p:first-child {
	width: 100px;
	height: 100px;
	background: url(../imgs/showqrcode.jpg) no-repeat;
	background-size: cover;
}
#ScanCodeLogin .register {
	font-size: 14px;
	margin-top: 15px;
	text-align: left;
	color: #909090;
}
#ScanCodeLogin .register a {
	color: var(--themeColor);
}
/* 尾部 */
footer {
	width: var(--totalWid);
	height: 330px;
}
.footer-top {
	margin-top: 35px;
}
footer ul {
	display: flex;
	justify-content: space-between;
	width: 730px;
	height: 205px;
}
footer li h3 {
	line-height: 30px;
	font-size: 16px;
	margin-bottom: 34px;
}
footer li a {
	display: block;
	line-height: 24px;
	font-size: 12px;
	color: #807570;
	/* cursor: pointer; */
}
/* 微信公众号 */
.footer-top-right {
	width: 108px;
	height: 204px;
	text-align: right;
}
.footer-top-right h3 {
	line-height: 30px;
	font-size: 16px;
}
.footer-top-right p {
	line-height: 24px;
	font-size: 12px;
	color: #807570;
}
.footer-top-right img {
	top: 80px;
	left: 0;
}
.footer-bottom {
	padding-top: 50px;
}
